﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DashBoardEntidades
{
    public class WebInformation : HTML 
    {
        #region Constantes Bonos
        /// <summary>
        /// Constantes de los bonos
        /// </summary>
        private const string _30YBondSymbol = "US30Y";
        private const string _10YBondSymbol = "US10Y";
        private const string _5YBondSymbol = "US5Y";
        private const string _30YBondName = "30-Yr T-Bond";
        private const string _10YBondName = "10-Yr T-Note";
        private const string _5YBondName = "5-Yr T-Note";

        #endregion

        private DashBoardBono Bond30Y;       
        private DashBoardBono Bond10Y;         
        private DashBoardBono Bond5Y;


        public DashBoardBono _30YBond
        {
            get { return Bond30Y; }
            set { Bond30Y = value; }
        }
        public DashBoardBono _10YBond
        {
            get { return Bond10Y; }
            set { Bond10Y = value; }
        }
        public DashBoardBono _5YBond
        {
            get { return Bond5Y; }
            set { Bond5Y = value; }
        }

        public WebInformation(string url):base(url)
        {
            Bond30Y = GetBondInformation(_30YBondName, _30YBondSymbol);
            Bond10Y = GetBondInformation(_10YBondName, _10YBondSymbol);
            Bond5Y = GetBondInformation(_5YBondName, _5YBondSymbol);
        }
    }
}
